/*
 * @Description: 成本管理报表数据模型
 * @Author: wind-lc
 * @version: 1.0
 * @Date: 2024-03-26 15:51:19
 * @LastEditTime: 2024-04-02 15:03:32
 * @FilePath: \cscec-pms-admin\src\views\businessAffairs\businessCostPlanManagement\costManagementReport\model.js
 */
import OrgTreeSelect from '@/components/OrgTreeSelect'
// 搜索项
const searchOption = [
  {
    name: '所属单位',
    valueKey: 'searchQuery',
    type: OrgTreeSelect,
  }
]
// 表头
const columns = [
  {
    title: '序号',
    width: 80,
    align: 'center',
    customRender: (text, record, index) => {
      return index + 1
    },
    checkColumn: true,
    fixed:'left'
  },
  {
    title: '分公司名称',
    ellipsis: true,
    width: 200,
    dataIndex: 'branchCompanyName',
    checkColumn: true,
    fixed:'left'
  },
  {
    title: '项目名称',
    ellipsis: true,
    width: 200,
    dataIndex: 'projectName',
    checkColumn: true,
    fixed:'left'
  },
  {
    title: '项目类型',
    ellipsis: true,
    // width: 200,
    dataIndex: 'projectType',
    // checkColumn: true
  },
  // {
  //   title: '商务数据',
  //   children: [
  {
    title: '确权产值(元)',
    ellipsis: true,
    // width: 200,
    dataIndex: 'authorizedOutputValue'
  },
  {
    title: '实际产值(元)',
    ellipsis: true,
    // width: 200,
    dataIndex: 'actualOutputValue'
  },
  {
    title: '预计总收入(元)',
    ellipsis: true,
    // width: 200,
    dataIndex: 'predictGrossIncome'
  },
  {
    title: '当期累计收入(元)',
    ellipsis: true,
    // width: 200,
    dataIndex: 'accumulatedIncome'
  },
  {
    title: '目标成本(元)',
    ellipsis: true,
    // width: 200,
    dataIndex: 'targetCost'
  },
  {
    title: '当期累计目标成本(元)',
    ellipsis: true,
    // width: 200,
    dataIndex: 'accumulatedTargetCost'
  },
  {
    title: '当期累计实际成本(元)',
    ellipsis: true,
    // width: 200,
    dataIndex: 'accumulatedActualCost'
  },
  {
    title: '变洽签实际成本(元)',
    ellipsis: true,
    // width: 200,
    dataIndex: 'changeContactTabActualCost'
  },
  {
    title: '成本降低额(元)',
    ellipsis: true,
    // width: 200,
    dataIndex: 'costReduceAmount'
  },
  // ]
  // },
  // {
  //   title: '商务指标',
  //   children: [
  {
    title: '工程计量确认率(%)',
    ellipsis: true,
    // width: 200,
    dataIndex: 'engineeringMetrologyConfirmationRate'
  },
  {
    title: '产值确权率(%)',
    ellipsis: true,
    // width: 200,
    dataIndex: 'authorizedOutputValueRate'
  },
  {
    title: '成本降低率(%)',
    ellipsis: true,
    // width: 200,
    dataIndex: 'costReduceRate'
  },
  {
    title: '实目比(当期)(%)',
    ellipsis: true,
    // width: 200,
    dataIndex: 'solidEyeRatio'
  },
  {
    title: '实目比(已完节点)(%)',
    ellipsis: true,
    // width: 200,
    dataIndex: 'completeNodeSolidEyeRatio'
  },
  {
    title: '管理费占比(%)',
    ellipsis: true,
    // width: 200,
    dataIndex: 'managementFeeRatio'
  },
  {
    title: '安全文明施工费占比(%)',
    ellipsis: true,
    // width: 200,
    dataIndex: 'constructionFeeRatio'
  },
  {
    title: '临建占比(临建费用/预计总成本)(%)',
    ellipsis: true,
    // width: 360,
    dataIndex: 'temporaryConstructionRatio'
  },
  {
    title: '变洽签占比(变洽签/当期累计实际成本)(%)',
    ellipsis: true,
    // width: 460,
    dataIndex: 'changeContactTabRatio'
  },
  {
    title: '平米成本(房建)(元/m²)',
    ellipsis: true,
    // width: 260,
    dataIndex: 'houseSquareMeterCost'
  },
  {
    title: '平米成本(安装)(元/m²)',
    ellipsis: true,
    // width: 260,
    dataIndex: 'installSquareMeterCost'
  },
  {
    title: '精装平米成本(元/m²)',
    ellipsis: true,
    // width: 200,
    dataIndex: 'hardcoverSquareMeterCost'
  },
  {
    title: '外装平米成本(元/m²)',
    ellipsis: true,
    // width: 200,
    dataIndex: 'exteriorSquareMeterCost'
  },
  {
    title: 'CI平米成本(元/m²)',
    ellipsis: true,
    // width: 200,
    dataIndex: 'ciSquareMeterCost'
  },
  {
    title: '物业平米成本(元/m²)',
    ellipsis: true,
    // width: 200,
    dataIndex: 'tenementSquareMeterCost'
  },
  {
    title: '标准化平米成本(元/m²)',
    ellipsis: true,
    // width: 200,
    dataIndex: 'standardSquareMeterCost'
  },
  {
    title: '脚手架平米成本(元/m²)',
    ellipsis: true,
    // width: 200,
    dataIndex: 'scaffoldSquareMeterCost'
  },
  {
    title: '模板平米成本(材料)(元/m²)',
    ellipsis: true,
    // width: 260,
    dataIndex: 'materialsSquareMeterCost'
  },
  {
    title: '模板平米成本(人工)(元/m²)',
    ellipsis: true,
    // width: 260,
    dataIndex: 'labourSquareMeterCost'
  },
  {
    title: '给排水工程平米成本(元/m²)',
    ellipsis: true,
    // width: 260,
    dataIndex: 'drainWaterSquareMeterCost'
  },
  {
    title: '电气工程平米成本(元/m²)',
    ellipsis: true,
    // width: 260,
    dataIndex: 'electricSquareMeterCost'
  },
  {
    title: '暖通工程平米成本(元/m²)',
    ellipsis: true,
    // width: 260,
    dataIndex: 'warmSquareMeterCost'
  },
  // ]
  // },
  {
    title: '填报人',
    ellipsis: true,
    // width: 120,
    dataIndex: 'informant'
  },
]
export {
  searchOption,
  columns
}